package com.ruoyi.user.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.user.mapper.DressUserMapper;
import com.ruoyi.user.model.constant.UserConstant;
import com.ruoyi.user.model.pojo.entity.DressUser;
import com.ruoyi.user.service.IDressUserService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户拥有装扮表 服务实现类
 * </p>
 *
 * @author Gnc
 * @since 2025-01-16
 */
@Service
public class DressUserServiceImpl extends ServiceImpl<DressUserMapper, DressUser> implements IDressUserService {

    @Override
    public List<DressUser> isUse(Long userId, Integer dressType) {
        return lambdaQuery()
                .eq(DressUser::getUserId, userId)
                .ge(DressUser::getDressTime, new Date())
                .list();
    }
}
